
<div id="topspacer" style="position:relative; margin-top:80px;"></div>
&nbsp;&nbsp;
<a href="<?php echo $BASEURL."solr"?>">SEARCH ENGINE</a>
|
<a href="<?php echo $BASEURL."solr/remove_all_feeds/"?>">REMOVE INDEX</a>
|
<a href="<?php echo $BASEURL."solr/index_feed/all_feeds_index/"?>">REINDEX ALL</a>
|
<a href="<?php echo $BASEURL."solr/commit_index/all/"?>">COMMIT INDEX CHANGES</a>
|
<a href="<?php echo $BASEURL."solr/optimize/"?>">OPTIMIZE INDEX SEGMENTS</a>
<div style="width:750px;">
<div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr">
    <form method="POST" action="<?php echo $BASEURL?>solr/manage_feeds/">
        <table cellpadding="3" cellspacing="0">
        <tr>
            <td>*Feed URL:</td>
            <td>*Feed Type:</td>
            <td>Feed Topic(s):</td>
        </tr>
        <tr>
            <td><input type="text" name="feed_url" /></td>
            <td><input type="text" name="feed_type" /></td>
            <td><input type="text" name="feed_topic" maxlength="50" /></td>
        </tr>
        <tr>
            <td>Feed Station</td>
            <td>Feed Program:</td>
            <td>Submit</td>
        </tr>
        <tr>
            <td><input type="text" name="feed_station" /></td>
            <td><input type="text" name="feed_program" /> </td>
            <td><input style="padding:2px;" type="submit" value="Add New Feed" /></td>
            
        </tr>
        </table>
        <input type="hidden" name="add_feed" value="yes" />
    </form>
</div></div></div></div></div></div></div></div>
</div>


<div id="results" style="padding:3px; margin-top:20px;">

<?php echo "<b>". $total." feeds</b>"?><br /><br />
<?php if($total > $this->settings->get_param("per_page")){echo "<b>PAGES: " . $feeds_pages . "</b>";}?><br /><br />

<form method="POST" action="<?=$BASEURL?>solr/manage_feeds/">
<input type="text" name="feed_type_filter" value="<?php echo htmlspecialchars($feed_type_filter, ENT_QUOTES, 'utf-8');?>" /> <input type="submit" value="Search >>" style="width:90px; padding:2px;">
</form>
<table cellpadding="3" cellspacing="1" style="border:1px solid black;">

<tr>
    <td style="background:grey; color:white; font-weight:bold;">ID</td>
    <td style="background:grey; color:white; font-weight:bold;">Feed URL</td>
    <td style="background:grey; color:white; font-weight:bold;">Station</td>
    <td style="background:grey; color:white; font-weight:bold;">Program</td>
    <td style="background:grey; color:white; font-weight:bold;">Topic</td>
    <td style="background:grey; color:white; font-weight:bold;">Feed Type</td>
    <td style="background:grey; color:white; font-weight:bold;">Last Indexed</td>
    <td style="background:grey; color:white; font-weight:bold;">Index</td>
    <td style="background:grey; color:white; font-weight:bold;">Remove</td>
</tr>

<?php
$x = 0;
foreach($res_feeds as $res){
if($x%2 == 0){ $bg = "lightgrey"; }else{ $bg = "white"; }
?>
<tr>
    <td style="<?php echo "background:".$bg.";";?>"><?php echo $res->ID?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php if(strlen($res->feed_url) > 20){echo "<a title='".$res->feed_url."' target='_blank' href='".$res->feed_url."'>".substr($res->feed_url,0,20)."...</a>";}else{echo "<a title='".$res->feed_url."' target='_blank' href='".$res->feed_url."'>".$res->feed_url."</a>";}?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php echo $res->feed_station?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php echo $res->feed_program?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php echo $res->feed_topic?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php echo $res->feed_type?></td>
    <td style="<?php echo "background:".$bg.";";?>"><?php if($res->last_index > 0 ){echo date("F d Y - H:i:s",$res->last_index);}else{echo "Never";}?></td>
    <td style="<?php echo "background:".$bg.";";?>"><input type="button" style="width:100px;" value="Update Index" onClick="location.href='<?php echo $BASEURL?>solr/index_feed/<?php echo $res->ID?>';" /></td>
    <td style="<?php echo "background:".$bg.";";?>"><input type="button" style="width:100px;" value="Remove" onClick="location.href='<?php echo $BASEURL?>solr/remove_feed/<?php echo $res->ID?>';" /></td>
</tr>
<?php
$x++;
}
?>
</table>

</div>